package com.tx.springboot_demo.filter;

import org.springframework.stereotype.Component;

import javax.servlet.*;
import java.io.IOException;

/**
 * @author ：tx
 * @description：
 * @date ：Created in 2019/4/3 15:38
 * @modified By：
 * @version:
 */
@Component
public class InputFilter implements Filter {

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("在进入方法前，先进来这里！");
        //执行下一个fiilter
        filterChain.doFilter(servletRequest,servletResponse);
    }
}
